from django.conf.urls.defaults import *
from django.views.generic.simple import direct_to_template
from django.conf import settings

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^$', direct_to_template, { 'template': 'home.html'}, 'index' ),
    (r'^polls/', include('pysoftsaurus.polls.urls')),
    (r'^articles/', include('pysoftsaurus.articles.urls')),
    (r'^comments/', include('django.contrib.comments.urls')),
    (r'^quotes/', include('pysoftsaurus.quotes.urls')),
    (r'^admin/', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/home/fabio/Dropbox/Private/Projects/sxedesigns/trunk/pysoftsaurus/media/'}),
    )
